how can I split string according to space in java

88

how can I split string according to space in java? -

str = "Hello I'm your String";
String[] splited = str.split("\\s+");

Comments

Submit
0 Comments